/* pongian.h */

#include <stdlib.h>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_gfxPrimitives.h>

#define TICK_INTERVAL 5

#include "tools.h"
#include "pmenu.h"

#include "level.h"

#define PADDLE_SPEED 0.2
#define PADDLE_SPEED_2 2
#define PADDLE_SPEED_ACCEL 0.2

#define PONGIAN_MOVEMENT_MODE 0

#define BALL_SPEED 2

#define PADDLE_HEIGHT 15
#define PADDLE_LENGTH 70

#define BRICK_HEIGHT 15
#define BRICK_LENGTH 80

#define BLING 1


struct environment
{
	int x;
	int y;
	unsigned char bpp;
	Uint32 flags;
};

struct paddle
{
	float current_speed;
	float wanted_speed;
	SDL_Rect pos;
	SDL_Color color;
	Uint8 alpha;
};

struct pball
{
	float speed_x;
	float speed_y;
	SDL_Rect pos;
	SDL_Color color;
	Uint8 alpha;
};

extern SDL_Surface *screen;
extern TTF_Font * plain_font;
extern struct environment pongian;
extern SDL_Color normal_color;
extern SDL_Color select_color;

